package service;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.SqlSession;

import dao.UsersDao;
import pojo.UsersPojo;
import util.MybatisSessionFactory;

public class UsersService {

	SqlSession sql = MybatisSessionFactory.getSqlSession();
	UsersDao dao = sql.getMapper(UsersDao.class);

	public UsersPojo queryone(
			@Param("account") String account,
			@Param("password") String password) {
		return dao.queryone(account, password);
	}

	public List<UsersPojo> querynickname(String id) {
		return dao.querynickname(id);

	}

}
